package mysgs.cards;

import org.openslash.util.Utilities;

import mysgs.SGSMatchConfiguration;

public class MakeSuitS1V1 implements MakeSuit {

	private MakeSuitPuzzle msp;

	public MakeSuitS1V1(SGSMatchConfiguration cfg) {
		msp = new MakeSuitPuzzle(cfg);
	}

	@Override
	public int calcGCCount() {
		return msp.calcGCCount();
	}

	@Override
	public int calcRCCount() {
		return msp.calcRCCount();
	}

	@Override
	public void makeGCSuit(SGSCardSuit suit, SGSCardInstance cardIns) {
		msp.makeGCSuit(suit, cardIns);
	}

	@Override
	public byte[] makeIdentitySuit() {
		if( Utilities.getRandomInt(2) == 0 )
		{
			return new byte[]{1,2,0,4,5,8};
		}else{
			return new byte[]{4,5,8,1,2,0};
		}
	}

	@Override
	public void makeRCSuit(SGSCardSuit suit) {
		msp.makeRCSuit(suit);
	}

}
